import matplotlib, random
import matplotlib.pyplot as plt
from pylab import legend

#matplotlib.rcParams['axes.unicode_minus'] = False
fig = plt.figure()
ax = fig.add_subplot(111, label="hello")
ax.plot(random.sample(range(100), 100), random.sample(range(100), 100), 'o', label="test")
print dir(ax)
ax.plot(random.sample(range(100), 100), random.sample(range(100), 100), 'o', label="test")
ax.set_title('Test Matplot')
legend( ('things', 'some other things',) ,
        loc = 'upper right')
plt.show()
